package com.chenchao.designer.abstractFactory;

public interface Cpu {
    void run();
    //静态的内部实现类，通过接口名.类名获取
    class CpuImpl1 implements Cpu{

        @Override
        public void run() {
            System.out.println("我是cupA");
        }
    }
    class CpuImpl2 implements Cpu{

        @Override
        public void run() {
            System.out.println("我是CpuB");
        }
    }


}
